package cn.wen.mybatis.framework.transaction;import java.sql.Connection;import java.sql.SQLException;/** * 事务接口类 */public interface Transaction {    /**     *     * @return     * @throws SQLException     */    Connection getConnection() throws SQLException;    /**     * 提交事务     * @throws SQLException     */    void commit() throws SQLException;    /**     * 回滚事务     * @throws SQLException     */    void rollback() throws SQLException;    /**     * 关闭连接     * @throws SQLException     */    void close() throws SQLException;    /**     * 获取超时时长     * @return     * @throws SQLException     */    Integer getTimeout() throws SQLException;}